﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace Utilities
{
    public class EventLogHelper
    {
        public static void WriteErrorEntry(String source, String msg)
        {
            EventLog m_EventLog = new EventLog("");
            m_EventLog.Source = source;
            m_EventLog.WriteEntry(msg, EventLogEntryType.Error);
        }
        public static void WriteInfoEntry(String source, String msg)
        {
            EventLog m_EventLog = new EventLog("");
            m_EventLog.Source = source;
            m_EventLog.WriteEntry(msg, EventLogEntryType.Error);
        }
    }
}
